package model

import "github.com/zeromicro/go-zero/core/stores/sqlx"

var _ MajorModel = (*customMajorModel)(nil)

type (
	// MajorModel is an interface to be customized, add more methods here,
	// and implement the added methods in customMajorModel.
	MajorModel interface {
		majorModel
	}

	customMajorModel struct {
		*defaultMajorModel
	}
)

// NewMajorModel returns a model for the database table.
func NewMajorModel(conn sqlx.SqlConn) MajorModel {
	return &customMajorModel{
		defaultMajorModel: newMajorModel(conn),
	}
}
